package com.hilon.segment.jpa.entity;

import com.hilon.base.entity.BaseSimple;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@Entity
public class BomMain extends BaseSimple implements Serializable {
    @OneToMany(cascade = CascadeType.ALL)
    @JoinColumn
    private List<BomChild> bomChildList=new ArrayList<BomChild>();
    private Long pid;
}
